import { DEMO_ACTION } from 'actionTypes';
import { DEMO_MUTATION } from 'mutationTypes';

import appRouter from 'app/routes';

export default {
  [DEMO_ACTION] ({ commit }, payload) {
    commit(DEMO_MUTATION, payload);
    appRouter.replace('/private/demo');
  }
};
